import React from 'react'
import {Outlet} from "react-router-dom"
import Islogin from '../utils/islogin'
import {NavLink} from "react-router-dom"
function Home() {
  return (
    <div className='appwrap'>
      <div className='left'>
      {
          JSON.parse(localStorage.getItem("userpath")).map((item,index)=>{

            return (
                <div key={index}>
                  <NavLink to={item.routerpath}>{item.title}</NavLink>
                </div>
            )
          })
       }
      </div>
       <div className='right'>
          <Outlet></Outlet>
       </div>
       
    </div>
  )
}

export default Islogin(Home)